using UnityEngine;
using System.Collections;

public class StateTorreLook : State<TorretaControl> 
{
    static StateTorreLook m_instance = new StateTorreLook();
    public static StateTorreLook instance { get { return m_instance; } }

    public override void OnEnter(TorretaControl behaviour)
    {

        // animacion de torre vigilando
    }

    public override void OnUpdate(TorretaControl behaviour)
    {
        // comprueba si existen enemigos dentro del radio de accion y ataca
		behaviour.nextEnemy();
 //       if (!behaviour.isListaEnemigosVacia())
  //      {
 //           behaviour.State = StateTorreAtack.instance;
 //       }
        
    }

    public override void OnExit(TorretaControl behaviour)
    {
        //parar animacion si es encesario  
    }

    public override void OnAction(string name, TorretaControl behaviour, object value)
    {
        
    }

   

}
